import { stringify } from 'qs';
import request from '@/utils/request';
import {formDataCode} from '@/utils/utils';

//列表
export async function GetRefundRecords(params) {
    return request(`/${window.storeId}/Finance/GetRefundRecords`, {
      method: 'POST',
      headers:{
        'Content-Type':"application/x-www-form-urlencoded",        
     },
     body: formDataCode(params)
    });
  }

  //原路
  export async function GrantRefundBack(params) {
    return request(`/${window.storeId}/Finance/GrantRefundBack`, {
      method: 'POST',
      headers:{
        'Content-Type':"application/x-www-form-urlencoded",        
     },
     body: formDataCode(params)
    });
  }

    //只标记
    export async function TabRefundRecord(params) {
        return request(`/${window.storeId}/Finance/TabRefundRecord`, {
          method: 'POST',
          headers:{
            'Content-Type':"application/x-www-form-urlencoded",        
         },
         body: formDataCode(params)
        });
      }

 // 转账方式
export async function GetTransferTypes(params) {
    return request(`/${window.storeId}/Finance/GetTransferTypes?${stringify(params)}`);
}

//获取订单维权钱款去向
export async function GetMoneyWent(params) {
    return request(`/${window.storeId}/Finance/GetMoneyWent?${stringify(params)}`);
}

